package com.zkk.service.impl;

import com.zkk.dao.AccountDao;
import com.zkk.dao.impl.AccountDaoImpl;
import com.zkk.pojo.Account;
import com.zkk.service.AccountService;

import java.math.BigDecimal;
import java.util.List;

public class AccountServiceImpl implements AccountService {
    private AccountDao accountDao = new AccountDaoImpl();

    @Override
    public int addAccount(Account account) {
        return accountDao.addAccount(account);
    }

    @Override
    public int setPwd(Account account) {
        return accountDao.setPwd(account);
    }


    @Override
    public Account queryAccount(String id_number) {
        return accountDao.queryAccount(id_number);
    }

    @Override
    public Account queryAccount() {
        return accountDao.queryAccount();
    }

    @Override
    public int updateProperty(String id_number, BigDecimal money) {
        return accountDao.updateProperty(id_number,money);
    }
}


